package com.example.forum.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author why
 * @since 2020-04-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dbo.T_USERS")
public class TUsers implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID",type = IdType.UUID)
    private String id;

    @TableField(value = "ISDELETED",fill = FieldFill.INSERT)
    private Boolean isdeleted;

    @TableField(value = "CREATIONTIME", fill = FieldFill.INSERT)
    private Date creationtime;

    @TableField("LASTMODIFICATIONTIME")
    private Date lastmodificationtime;

    @TableField("DELETIONTIME")
    private Date deletiontime;

    @TableField("CREATORUSERID")
    private String creatoruserid;

    @TableField("CREATORNAME")
    private String creatorname;

    @TableField("UPDATEUSERID")
    private String updateuserid;

    @TableField("DELETERUSERID")
    private String deleteruserid;

    @TableField("REMARK")
    private String remark;

    @TableField("USERNAME")
    private String username;

    @TableField("REALNAME")
    private String realname;

    @TableField("EMAIL")
    private String email;

    @TableField("ISEMAILCONFIRMED")
    private Boolean isemailconfirmed;

    @TableField("PHONENUM")
    private String phonenum;

    @TableField("ISPHONENUMCONFIRMED")
    private Boolean isphonenumconfirmed;

    @TableField("PASSWORD")
    private String password;

    @TableField("SALT")
    private String salt;

    @TableField("ISLOCKED")
    private Boolean islocked;

    @TableField("POSTSTATIONID")
    private String poststationid;

    @TableField("POSTSTATIONNAME")
    private String poststationname;

    @TableField("STREETID")
    private String streetid;

    @TableField("STREETNAME")
    private String streetname;

    @TableField("USERTYPE")
    private Integer usertype;

    @TableField("IDCARD")
    private String idcard;

    @TableField("PEOPLESEX")
    private String peoplesex;

    @TableField("PEOPLEAGE")
    private Integer peopleage;

    @TableField("PEOPLETELL")
    private String peopletell;

    @TableField("PEOPLECARD")
    private String peoplecard;

    @TableField("PEOPLEPICTURE")
    private String peoplepicture;

    @TableField("PEOPLEINTEGRATION")
    private Integer peopleintegration;

    @TableField("REGIONID")
    private String regionid;

    @TableField("NEIGHBORHOODCOMMITTEEID")
    private String neighborhoodcommitteeid;

    @TableField("ADDRESS")
    private String address;

    @TableField("USERSOURCE")
    private Integer usersource;

    @TableField("TOKEN")
    private String token;

    @TableField(exist = false)
    private List<String> permissions;

    @TableField(exist = false)
    private List<String> roles;

    @TableField(exist = false)
    private List<String> roleName;
}
